using UnityEngine;
using UnityEditor;
using UnityEditor.UIElements;
using UnityEngine.UIElements;

[CustomEditor(typeof(TargetEditor))]
public class TargetEditor : Editor
{
    public override VisualElement CreateInspectorGUI()
    {
        VisualElement root = new VisualElement();
        SerializedProperty propertyGameObject = this.serializedObject.FindProperty("_go");
        SerializedProperty propertySprite = this.serializedObject.FindProperty("_sprite");

        VisualElement visualElementL = new VisualElement();
        VisualElement visualElementR = new VisualElement();
        root.Add(visualElementL);
        root.Add(visualElementR);

        visualElementL.Add(new PropertyField(propertyGameObject));
        visualElementR.Add(new PropertyField(propertySprite));

        return root;
    }
}